package cn.java86.dao;

import cn.java86.entity.Subject;

import java.util.List;

public interface SubjectDao {
    public int add(Subject s);
    public int update(Subject s);
    public int del(Long id);
    public Subject get( Long id);
    public List<Subject> findAll();
    public List<Subject> search(String name);
    //总共有多少门课
    public int findTotal();
}
